Skip to content

Add security warning to mailbox docs#149295

Open
StanFromIreland wants to merge 1 commit intopython:mainfrom
StanFromIreland:mailbox-security
Open

Add security warning to mailbox docs#149295
StanFromIreland wants to merge 1 commit intopython:mainfrom
StanFromIreland:mailbox-security

Conversation

@StanFromIreland
Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland commented May 2, 2026

CC @bitdancer, you should have gotten a series of notifications just there. I suggest adding a security warning, they collectively are the motivation for this change.

@StanFromIreland StanFromIreland requested a review from a team as a code owner May 2, 2026 17:26
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels May 2, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs May 2, 2026
@read-the-docs-community
Copy link
Copy Markdown

Comment thread Doc/library/mailbox.rst

The :mod:`!mailbox` module assumes full control over input parameters and the
underlying mailbox storage; it does not protect against untrusted paths or
externally modified data.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, you could probably add a variation on this warning to every module in the stdlib that operates on files, so at the moment I'm not convinced. I haven't read over the security issues, though, so we'll see. I don't think the message as is is all that useful, though. I certainly don't know what it is trying to tell me.

I suggest we hold on this for a bit for further discussion.

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 2, 2026

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

4 participants